home *** CD-ROM | disk | FTP | other *** search
Wrap
on CTchecknumber global CTprefspath, gWhatcd, csiAppFolderForInstall initPrefs = "Hello!" if gWhatcd = "Live 5 CSi MASTER" then S1 = char 1 of field "serial no field 3" S2 = char 2 of field "serial no field 3" S3 = char 3 of field "serial no field 3" S4 = char 1 of field "serial no field 4" S5 = char 2 of field "serial no field 4" S6 = char 3 of field "serial no field 4" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 77 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSM11-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 vMatchSerialORG = the text of field "serial no field 1" & "-" & the text of field "serial no field 2" & "-" & the text of field "serial no field 3" & "-" & the text of field "serial no field 4" if vMatchSerialORG = vMatchSerial then baCreateFolder(csiAppFolderForInstall & "CSi") if the machineType <> 256 then baCreateFolder(csiAppFolderForInstall & "CSi:Prefs") else baCreateFolder(csiAppFolderForInstall & "CSi\Prefs") end if writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.4" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 21 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi04-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi ST1" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 63 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "ST001-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi MT Plug-ins" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 56 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "MT001-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CubaseSX2 CSi STARTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 105 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSS03-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Reason CSi MASTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 98 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSM03-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Nuendo CSi MASTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 112 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSM04-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Logic CSi STARTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 126 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSS04-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "DP4 CSi STARTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 133 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSS05-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Reason CSi STARTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 140 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSS06-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Acid CSi STARTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 147 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSS08-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "Waves CSi MASTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 84 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSM02-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.10" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 77 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi10-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "DP4 CSi MASTER" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 70 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSM01-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.8" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 56 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi08-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.7" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 42 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi07-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.6" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 35 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi06-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.5" then S1 = char 11 of field "serial no field" S2 = char 12 of field "serial no field" S3 = char 13 of field "serial no field" S4 = char 15 of field "serial no field" S5 = char 16 of field "serial no field" S6 = char 17 of field "serial no field" SR = 0 SS = 0 ST = 0 SU = 0 SV = 0 SW = 0 SR = (S1 * S2) + 1 SS = (S3 * S4) + 1 ST = (S5 * S6) + ((S5 + S6) * 0.5) SU = SR * SS * 28 SV = ST + 21 SW = (SU * SV) + 514 SW = integer(SW) SW = string(SW) repeat while the number of chars in SW > 3 delete char 1 of SW end repeat sa = char 1 of SW SB = char 2 of SW SC = char 3 of SW vMatchSerial = "CSi05-" & SB & sa & SC & "-" & S1 & S2 & S3 & "-" & S4 & S5 & S6 if the text of field "serial no field" = vMatchSerial then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.3" then if (char 1 of field "serial no field" = "c") and (char 2 of field "serial no field" = "s") and (char 3 of field "serial no field" = "i") and (char 6 of field "serial no field" = "-") and (char 7 of field "serial no field" = "c") and (char 13 of field "serial no field" = "-") and (char 14 of field "serial no field" = "1") and (the number of chars in field "serial no field" = 14) then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi vol.2" then if (char 1 of field "serial no field" = "c") and (char 2 of field "serial no field" = "s") and (char 3 of field "serial no field" = "i") and (char 6 of field "serial no field" = "-") and (char 7 of field "serial no field" = "b") and (char 13 of field "serial no field" = "-") and (char 14 of field "serial no field" = "1") and (the number of chars in field "serial no field" = 14) then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if else if gWhatcd = "CSi_vol1" then if (char 1 of field "serial no field" = "c") and (char 2 of field "serial no field" = "s") and (char 3 of field "serial no field" = "i") and (char 6 of field "serial no field" = "-") and (char 7 of field "serial no field" = "a") and (char 13 of field "serial no field" = "-") and (char 14 of field "serial no field" = "1") and (the number of chars in field "serial no field" = 14) then writeTextFile(CTprefspath, initPrefs) set the textStyle of field "subtopics" to "plain" go("PT select") set the textStyle of field "map list" to "plain" else incorrectSerial() end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end if end